From d07778ac00c7bdb9fa3107aaab4fd9d8fe67edb0 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Fri, 1 Jul 2005 13:30:45 +0000 Subject: [PATCH] Remove incorrect check for terminating nul character. The terminating nul character is not stored in the store but added by read_reply. Signed-off-by: Christian Limpach --- linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index 2ee59a3084..55226be32b 100644 --- a/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -103,12 +103,6 @@ char *xenbus_read(const char *dir, const char *name, unsigned int *data_n) } else if(n == 0){ err = -ENOENT; kfree(data); - } else if(data[n - 1] != '\0') { - /* This shouldn't happen: everything is supposed to be a string. */ - printk("XENBUS: Reading path %s: missing null terminator len=%i\n", path, n); - err = -EINVAL; - kfree(data); - n = 0; } kfree(path); out: -- 2.30.2